package com.atguigu.educenter.service;

import com.atguigu.educenter.entity.UcenterMember;
import com.atguigu.educenter.entity.vo.LoginVo;
import com.atguigu.commonutils.vo.commentVo.CommentMemberVo;
import com.atguigu.educenter.entity.vo.RegisterVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author AIR
 * @since 2022-10-07
 */
public interface IUcenterMemberService extends IService<UcenterMember> {

    //登录的方法
    String login(LoginVo loginVo);

    //注册的方法
    void registerUser(RegisterVo registerVo);

    //根据openid查询
    UcenterMember getOpenIdMember(String openid);

    //根据token获取用户信息
    CommentMemberVo getCommentUserInfo(String memberId);

    //查询某一天的注册人数
    Integer countRegisterDay(String day);
}
